package com.supplychain.scm.core.common.version.config;

import com.supplychain.scm.core.common.version.enums.VersionSource;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName ApiVersionProperties
 * @createTime 12:11:00 2023/01/05
 */
@Data
@ConfigurationProperties(prefix = ApiVersionProperties.PREFIX)
public class ApiVersionProperties {

    /**
     * 前缀
     */
    public static final String PREFIX = "dby.api.version";

    private boolean enabled;

    private VersionSource versionSource = VersionSource.ALL;

    private String parameterName = "api-version";

    private String clientTypeName = "client-type";
}
